const fs = require('fs');
let result = fs.readFileSync('./people.json').toString();
let people = JSON.parse(result);
// console.log(res);
let strHtml = "<ul>";
people.forEach(person => strHtml += `<li>${person.name}</li>`);
strHtml += '</ul>';
fs.writeFileSync('./3-1.html', strHtml);